.class public Lcom/instagram/android/feed/comments/a/a;
.super Lcom/instagram/e/b/c;
.source "CommentThreadFragment.java"

# interfaces
.implements Lcom/instagram/a/b;
.implements Lcom/instagram/android/feed/comments/ui/i;
.implements Lcom/instagram/android/widget/v;


# instance fields
.field private Z:Lcom/instagram/j/l;

.field private aa:Lcom/instagram/android/feed/comments/ui/l;

.field private ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

.field private ac:Landroid/view/View;

.field private ad:Z

.field private ae:I

.field private af:Landroid/content/BroadcastReceiver;

.field private ag:Landroid/content/BroadcastReceiver;

.field private final ah:Landroid/database/DataSetObserver;

.field private final ai:Landroid/text/TextWatcher;

.field private aj:Lcom/instagram/android/feed/e/j;

.field private final i:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 69
    invoke-direct {p0}, Lcom/instagram/e/b/c;-><init>()V

    .line 82
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->i:Landroid/os/Handler;

    .line 92
    new-instance v0, Lcom/instagram/android/feed/comments/a/b;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/comments/a/b;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->af:Landroid/content/BroadcastReceiver;

    .line 102
    new-instance v0, Lcom/instagram/android/feed/comments/a/m;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/comments/a/m;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ag:Landroid/content/BroadcastReceiver;

    .line 109
    new-instance v0, Lcom/instagram/android/feed/comments/a/n;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/comments/a/n;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ah:Landroid/database/DataSetObserver;

    .line 116
    new-instance v0, Lcom/instagram/android/feed/comments/a/o;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/comments/a/o;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ai:Landroid/text/TextWatcher;

    .line 728
    return-void
.end method

.method private X()Z
    .locals 3

    .prologue
    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 297
    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-virtual {v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 298
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ac:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    move v0, v1

    .line 302
    :goto_0
    return v0

    .line 301
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ac:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0
.end method

.method private Y()Z
    .locals 2

    .prologue
    .line 354
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->i()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "CommentThreadFragment.SHOW_KEYBOARD"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private Z()V
    .locals 4

    .prologue
    .line 478
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-eqz v0, :cond_0

    .line 479
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    new-instance v1, Lcom/instagram/android/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-direct {v1, v2, v3}, Lcom/instagram/android/a/a;-><init>(Landroid/content/Context;Lcom/instagram/j/l;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 481
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/a/a;)Lcom/instagram/j/l;
    .locals 1
    .parameter

    .prologue
    .line 69
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/a/a;Lcom/instagram/j/l;)Lcom/instagram/j/l;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 69
    iput-object p1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    return-object p1
.end method

.method private a(Landroid/widget/EditText;)V
    .locals 1
    .parameter

    .prologue
    .line 315
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 316
    return-void
.end method

.method private a(Landroid/widget/TextView;)V
    .locals 1
    .parameter

    .prologue
    .line 307
    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 308
    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->a(Ljava/lang/String;)V

    .line 309
    const-string v0, ""

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 310
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->f(I)V

    .line 312
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/a/a;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 69
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/comments/a/a;->f(I)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/a/a;Landroid/widget/TextView;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 69
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/comments/a/a;->a(Landroid/widget/TextView;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/a/a;Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/a/x;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 69
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/feed/comments/a/a;->a(Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/a/x;)V

    return-void
.end method

.method private a(Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/a/x;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 676
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/as;->comment_report_options:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 679
    new-instance v1, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v2, Lcom/facebook/ba;->flag_comment_title:I

    invoke-virtual {p0, v2}, Lcom/instagram/android/feed/comments/a/a;->b(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v1

    new-instance v2, Lcom/instagram/android/feed/comments/a/l;

    invoke-direct {v2, p0, v0, p2, p1}, Lcom/instagram/android/feed/comments/a/l;-><init>(Lcom/instagram/android/feed/comments/a/a;[Ljava/lang/CharSequence;Lcom/instagram/android/feed/comments/a/x;Lcom/instagram/j/b;)V

    invoke-virtual {v1, v0, v2}, Lcom/instagram/ui/a/a;->a([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 712
    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 388
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-eqz v0, :cond_0

    .line 389
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    .line 390
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-static {p1, v1, v0, p0}, Lcom/instagram/android/feed/comments/b/a;->a(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/android/model/b/e;Lcom/instagram/android/feed/comments/a/a;)V

    .line 392
    :cond_0
    return-void
.end method

.method private aa()V
    .locals 1

    .prologue
    .line 484
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/comments/ui/l;->b()V

    .line 486
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/comments/ui/l;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 488
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->requestFocus()Z

    .line 489
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->a(Landroid/widget/EditText;)V

    .line 493
    :cond_0
    return-void
.end method

.method private ab()Z
    .locals 2

    .prologue
    const/4 v0, 0x0

    .line 496
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-nez v1, :cond_1

    .line 512
    :cond_0
    :goto_0
    return v0

    .line 500
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {v1}, Lcom/instagram/android/feed/comments/ui/l;->getCount()I

    move-result v1

    .line 502
    if-eqz v1, :cond_0

    .line 506
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    .line 507
    if-eqz v1, :cond_0

    .line 512
    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/feed/comments/a/a;)Lcom/instagram/android/feed/comments/ui/l;
    .locals 1
    .parameter

    .prologue
    .line 69
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/feed/comments/a/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 69
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->X()Z

    move-result v0

    return v0
.end method

.method static synthetic d(Lcom/instagram/android/feed/comments/a/a;)V
    .locals 0
    .parameter

    .prologue
    .line 69
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->Z()V

    return-void
.end method

.method static synthetic e(Lcom/instagram/android/feed/comments/a/a;)Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;
    .locals 1
    .parameter

    .prologue
    .line 69
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    return-object v0
.end method

.method private f(I)V
    .locals 4
    .parameter

    .prologue
    .line 221
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->v()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getHandler()Landroid/os/Handler;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 222
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/ListView;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/feed/comments/a/q;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/comments/a/q;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    int-to-long v2, p1

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 231
    :cond_0
    return-void
.end method

.method static synthetic f(Lcom/instagram/android/feed/comments/a/a;)V
    .locals 0
    .parameter

    .prologue
    .line 69
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->aa()V

    return-void
.end method

.method private f(Lcom/instagram/j/b;)V
    .locals 3
    .parameter

    .prologue
    .line 413
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Lcom/instagram/j/b;->n()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->learn_more:I

    new-instance v2, Lcom/instagram/android/feed/comments/a/f;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/f;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->delete:I

    new-instance v2, Lcom/instagram/android/feed/comments/a/e;

    invoke-direct {v2, p0, p1}, Lcom/instagram/android/feed/comments/a/e;-><init>(Lcom/instagram/android/feed/comments/a/a;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 432
    return-void
.end method

.method private g(I)V
    .locals 1
    .parameter

    .prologue
    .line 568
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(I)V

    .line 569
    return-void
.end method

.method private g(Lcom/instagram/j/b;)V
    .locals 3
    .parameter

    .prologue
    .line 646
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/as;->comment_delete_options:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 648
    new-instance v1, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    new-instance v2, Lcom/instagram/android/feed/comments/a/k;

    invoke-direct {v2, p0, v0, p1}, Lcom/instagram/android/feed/comments/a/k;-><init>(Lcom/instagram/android/feed/comments/a/a;[Ljava/lang/CharSequence;Lcom/instagram/j/b;)V

    invoke-virtual {v1, v0, v2}, Lcom/instagram/ui/a/a;->a([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 670
    return-void
.end method

.method static synthetic g(Lcom/instagram/android/feed/comments/a/a;)Z
    .locals 1
    .parameter

    .prologue
    .line 69
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->ab()Z

    move-result v0

    return v0
.end method

.method static synthetic h(Lcom/instagram/android/feed/comments/a/a;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 69
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->i:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 236
    sget v0, Lcom/facebook/ax;->layout_comment_thread:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 238
    sget v0, Lcom/facebook/aw;->layout_comment_thread_edittext:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    .line 240
    sget v0, Lcom/facebook/aw;->layout_comment_thread_button_send:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ac:Landroid/view/View;

    .line 242
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->Z()V

    .line 244
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    new-instance v2, Lcom/instagram/android/feed/comments/a/r;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/r;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 259
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ac:Landroid/view/View;

    new-instance v2, Lcom/instagram/android/feed/comments/a/s;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/s;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 266
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 267
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->ai:Landroid/text/TextWatcher;

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 268
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    new-instance v2, Lcom/instagram/android/feed/comments/a/t;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/t;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 277
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    new-instance v2, Lcom/instagram/android/feed/comments/a/c;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/c;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setBackButtonListener(Lcom/instagram/android/feed/comments/ui/a;)V

    .line 286
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    new-instance v2, Lcom/instagram/android/feed/comments/a/d;

    invoke-direct {v2, p0}, Lcom/instagram/android/feed/comments/a/d;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setSimpleChangedLayoutListener(Lcom/instagram/android/feed/comments/ui/b;)V

    .line 293
    return-object v1
.end method

.method public a(Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 554
    const/4 v0, 0x0

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 436
    new-instance v0, Lcom/instagram/android/feed/comments/a/g;

    invoke-direct {v0, p0}, Lcom/instagram/android/feed/comments/a/g;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    return-object v0
.end method

.method protected a(Lcom/instagram/android/d/j/f;)Lcom/instagram/android/d/e/s;
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)",
            "Lcom/instagram/android/d/e/s;"
        }
    .end annotation

    .prologue
    .line 559
    new-instance v0, Lcom/instagram/android/feed/comments/a/i;

    sget v1, Lcom/facebook/aw;->request_id_media_fetch_from_comment:I

    invoke-direct {v0, p0, p0, v1, p1}, Lcom/instagram/android/feed/comments/a/i;-><init>(Lcom/instagram/android/feed/comments/a/a;Landroid/support/v4/app/Fragment;ILcom/instagram/android/d/j/f;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 138
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "CommentThreadFragment.MEDIA_ID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 139
    invoke-static {}, Lcom/instagram/j/u;->a()Lcom/instagram/j/u;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/instagram/j/u;->b(Ljava/lang/String;)Lcom/instagram/j/l;

    move-result-object v1

    iput-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    .line 140
    new-instance v1, Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2, p0, p0}, Lcom/instagram/android/feed/comments/ui/l;-><init>(Landroid/content/Context;Lcom/instagram/android/widget/v;Lcom/instagram/android/feed/comments/ui/i;)V

    iput-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    .line 141
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "CommentThreadFragment.IS_STARRED"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v1

    iput-boolean v1, p0, Lcom/instagram/android/feed/comments/a/a;->ad:Z

    .line 143
    new-instance v1, Lcom/instagram/android/feed/e/j;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/e/j;-><init>(Landroid/support/v4/app/Fragment;)V

    iput-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->aj:Lcom/instagram/android/feed/e/j;

    .line 145
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-nez v1, :cond_0

    .line 146
    new-instance v1, Lcom/instagram/android/feed/comments/a/p;

    invoke-direct {v1, p0}, Lcom/instagram/android/feed/comments/a/p;-><init>(Lcom/instagram/android/feed/comments/a/a;)V

    invoke-virtual {p0, v1}, Lcom/instagram/android/feed/comments/a/a;->a(Lcom/instagram/android/d/j/f;)Lcom/instagram/android/d/e/s;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/android/d/e/s;->g()V

    .line 158
    :goto_0
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {p0, v1}, Lcom/instagram/android/feed/comments/a/a;->a(Landroid/widget/ListAdapter;)V

    .line 160
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->af:Landroid/content/BroadcastReceiver;

    new-instance v3, Landroid/content/IntentFilter;

    invoke-static {v0}, Lcom/instagram/j/l;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v3, v0}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2, v3}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 164
    invoke-super {p0, p1}, Lcom/instagram/e/b/c;->a(Landroid/os/Bundle;)V

    .line 165
    return-void

    .line 156
    :cond_0
    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    iget-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-virtual {v1, v2}, Lcom/instagram/android/feed/comments/ui/l;->a(Lcom/instagram/j/l;)V

    goto :goto_0
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 191
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/c;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 192
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setTranscriptMode(I)V

    .line 193
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j_()Landroid/widget/ListView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setStackFromBottom(Z)V

    .line 194
    return-void
.end method

.method public a(Lcom/instagram/android/model/b/e;Ljava/lang/String;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 585
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->m()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/instagram/e/b/a/a;->e(Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 589
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-static {p1, v0, p0}, Lcom/instagram/h/a/e;->a(Lcom/instagram/android/model/b/e;Lcom/instagram/j/l;Lcom/instagram/b/d;)V

    .line 590
    return-void
.end method

.method public a(Lcom/instagram/j/b;)V
    .locals 2
    .parameter

    .prologue
    .line 594
    invoke-virtual {p1}, Lcom/instagram/j/b;->f()Lcom/instagram/android/model/b/e;

    move-result-object v0

    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/model/b/e;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 595
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {v0, p1}, Lcom/instagram/android/feed/comments/ui/l;->a(Lcom/instagram/j/b;)V

    .line 599
    :goto_0
    return-void

    .line 597
    :cond_0
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/comments/a/a;->g(Lcom/instagram/j/b;)V

    goto :goto_0
.end method

.method public a(Lcom/instagram/j/b;Lcom/instagram/android/d/j/j;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 408
    invoke-static {p1}, Lcom/instagram/android/feed/comments/b/c;->a(Lcom/instagram/j/b;)V

    .line 409
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-static {v0, p2}, Lcom/instagram/android/h/d;->a(Landroid/support/v4/app/r;Lcom/instagram/android/d/j/j;)V

    .line 410
    return-void
.end method

.method public b(Lcom/instagram/j/b;)V
    .locals 1
    .parameter

    .prologue
    .line 603
    sget-object v0, Lcom/instagram/android/feed/comments/a/x;->b:Lcom/instagram/android/feed/comments/a/x;

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/feed/comments/a/a;->a(Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/a/x;)V

    .line 604
    return-void
.end method

.method public c()V
    .locals 5

    .prologue
    .line 538
    new-instance v0, Lcom/instagram/android/feed/comments/c/c;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    invoke-static {}, Lcom/instagram/android/util/w;->a()I

    move-result v3

    const/4 v4, 0x0

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/feed/comments/c/c;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/comments/c/c;->a(Lcom/instagram/j/l;)V

    .line 540
    return-void
.end method

.method public c(Lcom/instagram/j/b;)V
    .locals 5
    .parameter

    .prologue
    .line 608
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    sget-object v2, Lcom/instagram/android/feed/comments/c/b;->a:Lcom/instagram/android/feed/comments/c/b;

    new-instance v3, Lcom/instagram/android/feed/comments/a/u;

    const/4 v4, 0x0

    invoke-direct {v3, p0, v4}, Lcom/instagram/android/feed/comments/a/u;-><init>(Lcom/instagram/android/feed/comments/a/a;Lcom/instagram/android/feed/comments/a/b;)V

    invoke-static {v0, v1, p1, v2, v3}, Lcom/instagram/android/feed/comments/b/c;->a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/c/b;Lcom/instagram/android/d/j/a;)V

    .line 615
    return-void
.end method

.method public c_()Z
    .locals 1

    .prologue
    .line 580
    iget-boolean v0, p0, Lcom/instagram/android/feed/comments/a/a;->ad:Z

    return v0
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 215
    invoke-super {p0, p1}, Lcom/instagram/e/b/c;->d(Landroid/os/Bundle;)V

    .line 216
    return-void
.end method

.method public d(Lcom/instagram/j/b;)V
    .locals 3
    .parameter

    .prologue
    .line 619
    invoke-virtual {p1}, Lcom/instagram/j/b;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 620
    invoke-virtual {p0, p1}, Lcom/instagram/android/feed/comments/a/a;->e(Lcom/instagram/j/b;)V

    .line 642
    :goto_0
    return-void

    .line 622
    :cond_0
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    .line 623
    new-instance v1, Lcom/instagram/android/feed/comments/a/j;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/feed/comments/a/j;-><init>(Lcom/instagram/android/feed/comments/a/a;Lcom/instagram/j/b;)V

    .line 636
    sget v2, Lcom/facebook/ba;->failed:I

    invoke-virtual {v0, v2}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v2, Lcom/facebook/ba;->try_again:I

    invoke-virtual {v0, v2, v1}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v2, Lcom/facebook/ba;->delete:I

    invoke-virtual {v0, v2, v1}, Lcom/instagram/ui/a/a;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    goto :goto_0
.end method

.method public d()Z
    .locals 1

    .prologue
    .line 517
    const/4 v0, 0x1

    return v0
.end method

.method public d_()Ljava/lang/String;
    .locals 2

    .prologue
    .line 573
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "CommentThreadFragment.IS_SELF_MEDIA"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "self_comments"

    :goto_0
    return-object v0

    :cond_0
    const-string v0, "comments"

    goto :goto_0
.end method

.method public e(Lcom/instagram/j/b;)V
    .locals 2
    .parameter

    .prologue
    .line 395
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 396
    invoke-virtual {p1}, Lcom/instagram/j/b;->m()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p1}, Lcom/instagram/j/b;->n()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 397
    invoke-direct {p0, p1}, Lcom/instagram/android/feed/comments/a/a;->f(Lcom/instagram/j/b;)V

    .line 405
    :cond_0
    :goto_0
    return-void

    .line 398
    :cond_1
    const-string v0, "checkpoint_required"

    invoke-virtual {p1}, Lcom/instagram/j/b;->n()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 399
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/util/u;->a(Landroid/content/Context;)V

    goto :goto_0

    .line 401
    :cond_2
    invoke-virtual {p1}, Lcom/instagram/j/b;->m()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 403
    invoke-static {p1}, Lcom/instagram/android/feed/comments/b/c;->a(Lcom/instagram/j/b;)V

    goto :goto_0
.end method

.method public e()Z
    .locals 1

    .prologue
    .line 522
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-virtual {v0}, Lcom/instagram/j/l;->K()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e_()V
    .locals 0

    .prologue
    .line 181
    invoke-super {p0}, Lcom/instagram/e/b/c;->e_()V

    .line 182
    return-void
.end method

.method public f()Z
    .locals 1

    .prologue
    .line 533
    const/4 v0, 0x1

    return v0
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 186
    invoke-super {p0}, Lcom/instagram/e/b/c;->f_()V

    .line 187
    return-void
.end method

.method public g()Z
    .locals 1

    .prologue
    .line 527
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->Z:Lcom/instagram/j/l;

    invoke-virtual {v0}, Lcom/instagram/j/l;->k()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 198
    invoke-super {p0}, Lcom/instagram/e/b/c;->g_()V

    .line 199
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 200
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ai:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 201
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 202
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-virtual {v0, v2}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    .line 203
    iput-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    .line 204
    iput-object v2, p0, Lcom/instagram/android/feed/comments/a/a;->ac:Landroid/view/View;

    .line 205
    return-void
.end method

.method public h_()Z
    .locals 1

    .prologue
    .line 544
    const/4 v0, 0x0

    return v0
.end method

.method public i_()Z
    .locals 1

    .prologue
    .line 549
    const/4 v0, 0x0

    return v0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 1
    .parameter "newConfig"

    .prologue
    .line 171
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/activity/MainTabActivity;

    if-eqz v0, :cond_0

    .line 172
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 173
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->g(I)V

    .line 174
    invoke-super {p0, p1}, Lcom/instagram/e/b/c;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 177
    :cond_0
    return-void
.end method

.method public w()V
    .locals 5

    .prologue
    const/4 v4, 0x2

    .line 320
    invoke-super {p0}, Lcom/instagram/e/b/c;->w()V

    .line 322
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getRequestedOrientation()I

    move-result v0

    iput v0, p0, Lcom/instagram/android/feed/comments/a/a;->ae:I

    .line 323
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 325
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ah:Landroid/database/DataSetObserver;

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/comments/ui/l;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 329
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/activity/MainTabActivity;

    if-eqz v0, :cond_0

    .line 331
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x10

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 332
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->g(I)V

    .line 335
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ag:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "ActionBarService.action_bar_clicked"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 339
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->Y()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 340
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 342
    const/4 v1, 0x1

    invoke-virtual {v0, v4, v1}, Landroid/view/inputmethod/InputMethodManager;->toggleSoftInput(II)V

    .line 343
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-virtual {v0}, Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;->requestFocus()Z

    .line 348
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aj:Lcom/instagram/android/feed/e/j;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/j;->a()V

    .line 350
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->X()Z

    .line 351
    return-void

    .line 345
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/Window;->setSoftInputMode(I)V

    goto :goto_0
.end method

.method public x()V
    .locals 2

    .prologue
    .line 359
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ag:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 361
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    iget v1, p0, Lcom/instagram/android/feed/comments/a/a;->ae:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->setRequestedOrientation(I)V

    .line 362
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->ah:Landroid/database/DataSetObserver;

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/comments/ui/l;->unregisterDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 366
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/activity/MainTabActivity;

    if-eqz v0, :cond_0

    .line 368
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x30

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 370
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->g(I)V

    .line 374
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->ab:Lcom/instagram/android/feed/comments/ui/CommentAutoCompleteTextView;

    invoke-direct {p0, v0}, Lcom/instagram/android/feed/comments/a/a;->a(Landroid/widget/EditText;)V

    .line 378
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aa:Lcom/instagram/android/feed/comments/ui/l;

    invoke-virtual {v0}, Lcom/instagram/android/feed/comments/ui/l;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 379
    invoke-direct {p0}, Lcom/instagram/android/feed/comments/a/a;->aa()V

    .line 382
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/feed/comments/a/a;->aj:Lcom/instagram/android/feed/e/j;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/j;->b()V

    .line 384
    invoke-super {p0}, Lcom/instagram/e/b/c;->x()V

    .line 385
    return-void
.end method

.method public y()V
    .locals 2

    .prologue
    .line 209
    invoke-virtual {p0}, Lcom/instagram/android/feed/comments/a/a;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/feed/comments/a/a;->af:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 210
    invoke-super {p0}, Lcom/instagram/e/b/c;->y()V

    .line 211
    return-void
.end method
